package com.etoak.stock.mapper;

import com.etoak.stock.pojo.domin.StockBlockDomain;
import com.etoak.stock.pojo.entity.StockBlockRtInfo;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
* @author 孙有泽
* @description 针对表【stock_block_rt_info(股票板块详情信息表)】的数据库操作Mapper
* @createDate 2024-09-15 19:14:18
* @Entity com.etoak.stock.pojo.entity.StockBlockRtInfo
*/
public interface StockBlockRtInfoMapper {

    int deleteByPrimaryKey(Long id);

    int insert(StockBlockRtInfo record);

    int insertSelective(StockBlockRtInfo record);

    StockBlockRtInfo selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(StockBlockRtInfo record);

    int updateByPrimaryKey(StockBlockRtInfo record);
    /*
     * @author 孙有泽
     * @date 2024/10/16 16:20
     * @description 沪 深两市板块分时行情数据查询，以交易时间和交易总金额降序查询，取前10条数据
     */

    List<StockBlockDomain> getStockBlockInfo(@Param("curDateTime") Date curDateTime);

    int insertBatch(@Param("stockBlockRtInfos") List<StockBlockRtInfo> stockBlockRtInfos);
}
